package com.lwc.backendsinglestructure.queue.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum MessageQueueEnum {

    ARTICLE_MESSAGE_QUEUE("ARTICLE_MESSAGE_QUEUE","文章消息队列");

    private String queue;

    private String queueName;

    /**
     * 根据队列topic名称获取枚举对象
     *
     * @param queue
     * @return
     */
//    public static MessageQueueEnum getByQueue(String queue) {
//        for (MessageQueueEnum messageQueueEnum : MessageQueueEnum.values()) {
//            if (messageQueueEnum.getQueue().equals(queue)) {
//                return messageQueueEnum;
//            }
//        }
//        return null;
//    }



}
